package com.huluobo.lc.kotlinim1807ak.contract.register

import com.huluobo.lc.kotlinim1807ak.contract.BasePresenter

/**
 * @author Lc
 * @description: 1. 首先创建协议,确定功能,与UI反馈
 * @date :2021/2/23 11:18
 */
interface RegisterContract {
    interface Presenter : BasePresenter {
        fun register(userName: String, password: String, confirmPassword: String)
    }

    interface View {
        fun onUserNameError()
        fun onPasswordError()
        fun onConfirmPasswordError()
        fun onStartRegister()
        fun onRegisterSuccess()
        fun onRegisterFailed(message: String?)
        fun onUserExist()//新增接口,用户已注册
    }
}